//
//  DataSource.h
//  轻量级TableView
//
//  Created by 徐益智 on 16/4/14.
//  Copyright © 2016年 Vdianjing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^cellConfigBlock)(id cell, id item, NSIndexPath *indexPath);

@interface DataSource : NSObject <UITableViewDataSource>

@property (nonatomic, strong)NSArray *itemArray;
@property (nonatomic, copy) NSString *cellIdentifier;
@property (nonatomic, copy) cellConfigBlock cellBlock;

- (instancetype)initWithItem:(NSArray *)item cellIdentifier:(NSString *)cellIdentifier cellConfigBlock:(cellConfigBlock)config;

@end
